package com.globant;

import java.util.List;

import com.globant.profy.model.User;


public class UserService {
	
private UserDao userDao;

public UserService(UserDao userDao) {
	super();
	this.userDao = userDao;
}

public UserService() {
	super();
}

public void createUser(User user){
	userDao.createUser(user);
}

public void updateUser(User user){
	userDao.updateUser(user);
}
public void deleteUser(User user){
	userDao.deleteUser(user);
	
}
public List<User> getAllUsers(){
	List<User> allUsers= userDao.getAllUsers();
	return allUsers;
}
public User getUserByEmail(String email){
	User user=userDao.getUserByEmail(email);
	return user;
	
}

public UserDao getUserDao() {
	return userDao;
}

public void setUserDao(UserDao userDao) {
	this.userDao = userDao;
}

	
}
